<template>
  <div>
    <h3>app组件</h3>
    <!-- 子组件中setup使用了async/await -->
    <Suspense>
      <template #fallback>
        <h3>loading...</h3>
      </template>
      <child />
    </Suspense>
  </div>
</template>

<script>
import child from './components/child.vue'

export default {
  components: {
    child
  },
  setup() {
    return {}
  }
}
</script>

<style lang="scss" scoped></style>
